import {
    getLatestBdData,
    getLatestBeachData,
    getLatestInmvData,
    getLatestLevelData,
    getLatestPhrlData,
    getLatestRainData
} from "@/api";

export const MonitorType = {
    DryBeach: 1, //干滩
    WaterLevel: 2, //库水位
    SurfaceDisplacement: 3, //表面位移
    InternalDisplacement: 4, //内部位移
    PhreaticLine: 5, //浸润线
    Rainfall: 6, //降雨量
    Video: 7, //视频
};

export const MonitorMap = {
    [MonitorType.DryBeach]: {
        name: "干滩",
        icon: require("./asset/dry-beach-1.png"),
        dangerIcon: require("./asset/dry-beach-active-1.png"),
        dangerIcon2: require("./asset/dry-beach-active-2.png"),
        dangerIcon3: require("./asset/dry-beach-active-3.png"),
        dangerIcon4: require("./asset/dry-beach-active-4.png"),
        selectIcon: require("./asset/dry-beach-select.png"),
        api:getLatestBeachData
    },
    [MonitorType.WaterLevel]: {
        name: "库水位",
        icon: require("./asset/water-level-1.png"),
        dangerIcon: require("./asset/water-level-active-1.png"),
        dangerIcon2: require("./asset/water-level-active-2.png"),
        dangerIcon3: require("./asset/water-level-active-3.png"),
        dangerIcon4: require("./asset/water-level-active-4.png"),
        selectIcon: require("./asset/water-level-select.png"),
        api: getLatestLevelData
    },
    [MonitorType.SurfaceDisplacement]: {
        name: "表面位移",
        icon: require("./asset/surface-displacement-1.png"),
        dangerIcon: require("./asset/surface-displacement-active-1.png"),
        dangerIcon2: require("./asset/surface-displacement-active-2.png"),
        dangerIcon3: require("./asset/surface-displacement-active-3.png"),
        dangerIcon4: require("./asset/surface-displacement-active-4.png"),
        selectIcon: require("./asset/surface-displacement-select.png"),
        api: getLatestBdData
    },
    [MonitorType.InternalDisplacement]: {
        name: "内部位移",
        icon: require("./asset/internal-displacement-1.png"),
        dangerIcon: require("./asset/internal-displacement-active-1.png"),
        dangerIcon2: require("./asset/internal-displacement-active-2.png"),
        dangerIcon3: require("./asset/internal-displacement-active-3.png"),
        dangerIcon4: require("./asset/internal-displacement-active-4.png"),
        selectIcon: require("./asset/internal-displacement-select.png"),
        api: getLatestInmvData
    },
    [MonitorType.PhreaticLine]: {
        name: "浸润线",
        icon: require("./asset/phreatic-line-1.png"),
        dangerIcon: require("./asset/phreatic-line-active-1.png"),
        dangerIcon2: require("./asset/phreatic-line-active-2.png"),
        dangerIcon3: require("./asset/phreatic-line-active-3.png"),
        dangerIcon4: require("./asset/phreatic-line-active-4.png"),
        selectIcon: require("./asset/phreatic-line-select.png"),
        api: getLatestPhrlData
    },
    [MonitorType.Rainfall]: {
        name: "降雨量",
        icon: require("./asset/rainfall-1.png"),
        dangerIcon: require("./asset/rainfall-active-1.png"),
        dangerIcon2: require("./asset/rainfall-active-2.png"),
        dangerIcon3: require("./asset/rainfall-active-3.png"),
        dangerIcon4: require("./asset/rainfall-active-4.png"),
        selectIcon: require("./asset/rainfall-select.png"),
        api: getLatestRainData
    },
    [MonitorType.Video]: {
        name: "摄像头",
        icon: require("./asset/video-1.png"),
        dangerIcon: require("./asset/video-active-1.png"),
        dangerIcon2: require("./asset/video-active-2.png"),
        dangerIcon3: require("./asset/video-active-3.png"),
        dangerIcon4: require("./asset/video-active-4.png"),
        selectIcon: require("./asset/video-select.png"),
    },
};
